package com.gitee.minimalismstyle.fresh.common.core.validate

class DateValueValidate : ValueValidate {

    override fun check(value: Any?, params: String?): ValidateResult {
        return if(value == null || value.equals("")){
            ValidateResult(true)
        } else {
            if(value.toString().length > 9){
                ValidateResult(true)
            }else{
                ValidateResult(false, "必须为时间")
            }
        }
    }
}